package com.baymax.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baymax.entity.SysMenu;

import java.util.List;
import java.util.Set;

/**
 * 菜单 持久层
 *
 * @Author: baymax
 * @CreateTime: 2023/3/28 22:29
 * @Version: 1.0
 */
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    /**
     * 根据角色id查询所拥有的菜单
     *
     * @param roleIdList 角色id
     */
    @InterceptorIgnore
    Set<String> findByRoleIdList(List<Long> roleIdList);
}
